#include <include/core/SkBitmap.h>
#include <include/core/SkCanvas.h>
#include <include/core/SkImage.h>
#include <include/core/SkPicture.h>
#include <skia_framework.h>

int main()
{
    SkiaFramework sf;
    sf.SetDrawFunc([](SkCanvas &canvas) {
        canvas.clear(SK_ColorWHITE);

        auto data = SkData::MakeFromFileName("out/qq_head.png");
        auto image = SkImage::MakeFromEncoded(data);
        canvas.drawImage(image, 0, 0);
    });
    sf.Run();
    return 0;
}
